/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.util.List;
import pojo.SanPham;

/**
 *
 * @author MongKieu
 */
public interface SanPhamDAO {

    public int soLuongSanPhamTheoTheLoai(int maTheLoai);

    public List<SanPham> listSanPhamTheoTheLoai(int maTheLoai);

    public List<SanPham> listSanPhamTheoTheLoaiCoPhanTrang(int maTheLoai, int viTriBatDau, int soLuongSanPham);

    public boolean kiemtraSanPhamTonTai(int maSanPham);

    public boolean kiemtraSanPhamTonTaiByISBN(String ISBN);

    public SanPham laySanPhamByMaSanPham(int maSanPham);

    public SanPham laySanPhamByISBN(String ISBN);

    public List<SanPham> listSanPhamMoiNhapVe(int soLuongSanPhamMax,String query);

    public List<SanPham> listSanPhamMoiNhapVeCoPhanTrang(int viTriBatDau, int soLuongSanPham, String query);

    public int soLuongAllSanPhamTrongNhaSach();

    public List<SanPham> listAllSanPhamTrongNhaSachCoPhanTrang(int vitriBatDau, int soLuongSanPham);

    public List<SanPham> listSanPhamTheoTenVaNhomSanPhamCoPhanTrang(String tenSanPham, int theLoai, int viTriBatDau, int soLuongSanPham, String myQuery);

    public List<SanPham> listSanPhamTheoTenVaNhomSanPham(String tenSanPham, int NhomSanPhamID, String myQuery);
}
